home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 6927 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  795 b 

  1. Path: news.easysoft.com!not-for-mail
  2. From: nick@news.easysoft.com (Nick Gorham)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Is it me? or does time() not work as specified?
  5. Date: 16 Feb 1996 10:47:54 -0000
  6. Organization: Easysoft Ltd.
  7. Message-ID: <4g1ncq$ja4@lodur.easysoft.com>
  8. References: <3123a1ca.41523@news>
  9. NNTP-Posting-Host: localhost.easysoft.com
  10. X-NNTP-Posting-Host: lodur.easysoft.com
  11. X-Newsreader: TIN [version 1.2 PL2]
  12.  
  13. Faye Pearson (faye@fe-line.demon.co.uk) wrote:
  14. : Hi All, hope you can help?
  15.  
  16. : Compiler: Turbo C++ 3.0
  17.  
  18. : problem: time() documented to give seconds GMT since 1970. gives GMT+5
  19. :      localtime() gives correct GMT when daylight=0 and timezone=0
  20.  
  21. This confused me as well, The TZ enviroment variable is used to 
  22. get the local offset from GMT.
  23.  
  24. Nick Gorham - nick@easysoft.com
  25.